翻訳と辞書
Words near each other
・ Functional Requirements for Bibliographic Records
・ Functional residual capacity
・ Functional response
・ Functional safety
・ Functional selectivity
・ Functional sentence perspective
・ Functional shift
・ Functional Skills Qualification
・ Functional software architecture
・ Functional sourcing
・ Functional specialization (brain)
・ Functional specification
・ Functional spinal unit
・ Functional square root
・ Functional Strategy
Function object
・ Function of a real variable
・ Function of several real variables
・ Function overloading
・ Function point
・ Function pointer
・ Function problem
・ Function prologue
・ Function prototype
・ Function representation
・ Function series
・ Function space
・ Function test
・ Function tree
・ Function type


Dictionary Lists
翻訳と辞書 辞書検索 [ 開発暫定版 ]
スポンサード リンク

Function object : ウィキペディア英語版
Function object

A function object is a computer programming construct allowing an object to be invoked or called as if it were an ordinary function, usually with the same syntax (a function parameter that can also be a function).
== Description ==
A typical use of a function object is in writing callback functions. A callback in procedural languages, such as C, may be performed by using function pointers. However it can be difficult or awkward to pass a state into or out of the callback function. This restriction also inhibits more dynamic behavior of the function. A function object solves those problems since the function is really a façade for a full object, carrying its own state.
Many modern (and some older) languages, e.g. C++, Eiffel, Groovy, Lisp, Smalltalk, Perl, PHP, Python, Ruby, Scala, and many others, support first-class function objects and may even make significant use of them. Functional programming languages additionally support closures, i.e. first-class functions that can 'close over' variables in their surrounding environment at creation time. During compilation, a transformation known as lambda lifting converts the closures into function objects.

抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)
ウィキペディアで「Function object」の詳細全文を読む



スポンサード リンク
翻訳と辞書 : 翻訳のためのインターネットリソース

Copyright(C) kotoba.ne.jp 1997-2016. All Rights Reserved.